package pkg.andru.net;

import java.io.InputStream;

/**
 * http request exception
 * 
 * @author idiottiger
 * 
 */
public class HttpRequestException extends Exception {

    private InputStream mErrorStream;

    /**
     * 
     */
    private static final long serialVersionUID = 1021270821575227932L;

    public HttpRequestException(String message, InputStream stream) {
        super(message);
        mErrorStream = stream;
    }

    /**
     * get the error stream
     * 
     * @return
     */
    public InputStream getErrorStream() {
        return mErrorStream;
    }

}
